package com.alvis.exam.repository;

import com.alvis.exam.domain.TClass;
import com.alvis.exam.domain.TClassExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TClassMapper extends BaseMapper<TClass>{
    long countByExample(TClassExample example);

    int deleteByExample(TClassExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TClass record);

    int insertSelective(TClass record);

    TClass selectOneByExample(TClassExample example);

    TClass selectOneByExampleSelective(@Param("example") TClassExample example, @Param("selective") TClass.Column ... selective);

    List<TClass> selectByExampleSelective(@Param("example") TClassExample example, @Param("selective") TClass.Column ... selective);

    List<TClass> selectByExample(TClassExample example);

    TClass selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") TClass.Column ... selective);

    TClass selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TClass record, @Param("example") TClassExample example);

    int updateByExample(@Param("record") TClass record, @Param("example") TClassExample example);

    int updateByPrimaryKeySelective(TClass record);

    int updateByPrimaryKey(TClass record);

    void insertOrUpdateBatch(@Param("list") List<TClass> list);
}
